package com.lantosec.hmrp.modules.archives.vo;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.lantosec.hmrp.modules.archives.entity.UserHappyFuneral;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 领导干部参与操办本人及近亲属婚丧喜庆事宜情况报告表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserHappyFuneral对象", description="领导干部参与操办本人及近亲属婚丧喜庆事宜情况报告表")
public class UserHappyFuneralVO extends BaseVO<UserHappyFuneral> {
    private static final long serialVersionUID = 1L;


    public UserHappyFuneralVO(UserHappyFuneral entity){
        this.userHappyFuneralId = entity.getUserHappyFuneralId();
        this.userId = entity.getUserId();
        this.familyId = entity.getFamilyId();
        this.familyName = entity.getFamilyName();
        this.familyAppellation = entity.getFamilyAppellation();
        this.familyWorkUnit = entity.getFamilyWorkUnit();
        this.arrangeMatters = entity.getArrangeMatters();
        this.arrangeDate = entity.getArrangeDate();
        this.arrangeAdr = entity.getArrangeAdr();
        this.gift = entity.getGift();
        this.cashGift = entity.getCashGift();
        this.giftDeal = entity.getGiftDeal();
        this.createId = entity.getCreateId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
        this.verifyId = entity.getVerifyId();
        this.verifyUser = entity.getVerifyUser();
        this.verifyTime = entity.getVerifyTime();
        this.verifyStatus = entity.getVerifyStatus();
    }

    @Override
    public UserHappyFuneral convertToEntity(){
        return new UserHappyFuneral(this);
    }


    @ApiModelProperty(value = "主键ID")
    private String userHappyFuneralId;

    @ApiModelProperty(value = "用户主表ID")
    private String userId;

    @ApiModelProperty(value = "家庭成员ID")
    private String familyId;

    @ApiModelProperty(value = "家庭成员姓名")
    private String familyName;

    @ApiModelProperty(value = "家庭成员称谓，字典值")
    private String familyAppellation;

    @ApiModelProperty(value = "家庭成员工作单位")
    private String familyWorkUnit;

    @ApiModelProperty(value = "操办事项")
    private String arrangeMatters;

    @ApiModelProperty(value = "办理时间")
    private String arrangeDate;

    @ApiModelProperty(value = "办理地点")
    private String arrangeAdr;

    @ApiModelProperty(value = "收到礼品为json包含字段（name，礼品名称，字符串；num，礼品数量，小数；礼品总金额（人民币），total_rmb，小数）")
    private String gift;

    @ApiModelProperty(value = "礼金金额")
    private Float cashGift;

    @ApiModelProperty(value = "处理情况")
    private String giftDeal;

    @ApiModelProperty(value = "创建人ID")
    private String createId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核人ID")
    private String verifyId;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyUser;

    @ApiModelProperty(value = "审核时间")
    private Date verifyTime;

    @ApiModelProperty(value = "审核状态（0：未审核，1：以审核）")
    private Integer verifyStatus;

    @ApiModelProperty(value = "家庭成员称谓")
    private String familyAppellationName;
    @ApiModelProperty(value = "审核通过状态")
    private Integer state;

    private List<UserHappyFuneralGiftVO> userHappyFuneralGiftVO;
}
